package com.eventlogger.model;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.users.User;


@PersistenceCapable(identityType=IdentityType.APPLICATION)
public class EventInstance {

	@PrimaryKey
	@Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	

	@Persistent
	private String useremail;
	
	@Persistent
	private String eventname;
	
	@Persistent
	private String eventtype;
	
	@Persistent
	private String value;
	
	
	@Persistent
	private Date published;
	
	@Persistent
	private Date updated;
	
	
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUseremail() {
		return useremail;
	}

	public void setUseremail(String useremail) {
		this.useremail = useremail;
	}

	public String getEventname() {
		return eventname;
	}

	public void setEventname(String eventname) {
		this.eventname = eventname;
	}

	public String getEventtype() {
		return eventtype;
	}

	public void setEventtype(String eventtype) {
		this.eventtype = eventtype;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public Date getPublished() {
		return published;
	}

	public void setPublished(Date published) {
		this.published = published;
	}

	public Date getUpdated() {
		return updated;
	}

	public void setUpdated(Date updated) {
		this.updated = updated;
	}
	
	public  EventInstance(String eventname,String eventtype,String useremail,String value,Date published,Date updated)
	{
		this.eventname=eventname;
		this.eventtype=eventtype;
		this.useremail=useremail;
		this.value=value;
		this.published=published;
		this.updated=updated;
		
	}
	
	
	
}
